import { CqkjMap } from './CqkjMap'

export abstract class DataElement<T> {
  /** 用于缓存一些计算结果 */
  protected _cache: any = {}

  readonly option: T

  constructor (option: T) {
    this.option = option
  }

  /** 用于调试，查看数据是否合理 */
  abstract debug (map: CqkjMap): void
}
